package com.ggb.reactive.domain.vo

import com.fasterxml.jackson.annotation.JsonFormat
import com.ggb.reactive.domain.entity.OrderDetail
import io.swagger.v3.oas.annotations.media.Schema
import lombok.Data
import lombok.NoArgsConstructor
import org.springframework.data.annotation.Id
import java.math.BigDecimal
import java.time.Instant

@Data
@Schema(title = "订单 DishVO")
@NoArgsConstructor
data class OrderSubmitVO(

    @Schema(description = "订单id")
    var id: Long? = null,
    @Schema(description = "订单号")
    var orderNumber: String? = null,
    @Schema(description = "订单状态 1待付款 2待接单 3已接单 4派送中 5已完成 6已取消 7退款")
    var orderAmount: BigDecimal? = null,

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT-6")
    @Schema(description = "下单时间")
    var orderTime: Instant? = null,


    @Schema(description = "订单号")
    var number: String? = null,


    )
